let arr = [1, 2, 3, 4, 5];
let newArr = arr.reduce((tol, cur) => {
    tol.unshift(cur);
    return tol;
}, []);
console.log(newArr);
